package com.example.demo.datasource.multi.dao;

import com.example.demo.datasource.multi.config.MultiDataSourceConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.mapping.StatementType;


@Mapper
@MultiDataSourceConfig.test1Dao
public interface call_procedure {

//    @Options(statementType = StatementType.CALLABLE)
//    @Update("{CALL wuliuyunfei_delete_action()}")
//    void callWuliuyunfeiDeleteAction();

    @Options(statementType = StatementType.CALLABLE)
    @Update("{CALL wuliuyunfei_delete_action(#{tableName})}")
    void callWuliuyunfeiDeleteAction(@Param("tableName") String tableName);


}
